<%-- 
    Document   : login
    Created on : Oct 5, 2013, 3:26:40 PM
    Author     : Viktor
--%>



<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
<%


    if (session!=null)
    {
    String b = (String)session.getAttribute("auth");
    if(b!=null && b.equals("true"))
    {

        response.sendRedirect( "accept.jsp" );
    }
    }
%>


<form method="post" action="Auth">
    <input type="text" name="username" placeholder="e-mail">
    <input type="password" name="password" placeholder="password">
    <input type="submit" value="Login"/>
    &nbsp;
    <input type="reset" value="Reset"/>
</form>

<a href="register.jsp">register</a><br/>
<a href="hotwire2.jsp">search for hotels</a><br/>
<a href="resetPassword.jsp">forgot your password?</a>

</body>
</html>
